package cn.iocoder.yudao.module.xiaoBizHandler.controller.admin.tbFile.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;


@ApiModel(value = "管理后台 - 文件分页时的信息 Response VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class XTbFilePageItemRespVO extends XTbFileBaseVO {

    @ApiModelProperty(value = "主键id", required = true)
    private String id;

    @ApiModelProperty(value = "文件大小")
    private String fileSizeFormatter;

    @ApiModelProperty(value = "文件绝对路径")
    private String fileAbsolutePathFormatter;

    /**
     * 所属文件夹
     */
    private Folder folder;

    @ApiModel("文件夹")
    @Data
    public static class Folder {

        @ApiModelProperty(value = "文件夹id", required = true, example = "1")
        private String id;

        @ApiModelProperty(value = "文件夹名称", required = true, example = "语言")
        private String name;

    }

}
